﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AG.Editor.Core.Data
{
    public class AGTerrain
    {
        public byte Id { get; set; }
        public byte ForegroundId { get; set; }
        public string Name { get; set; }
        public Guid ModelUniqueId { get; set; }
        public List<AGTerrainTile> Tiles { get; set; }
        /// <summary>
        /// 底层地形，如果底层地形和上层地形一致代表是可以平铺开的地形，否则是衔接处的地形
        /// </summary>
        public byte BackgroundId { get; set; }

        public AGTerrain()
        {
            Tiles = new List<AGTerrainTile>();
        }

        public bool IsSimple()
        {
            if (ForegroundId == BackgroundId)
            {
                return true;
            }
            return false;
        }

        public override string ToString()
        {
            return Name;
        }
    }
}
